<template>
  <div id="app">
    <h1>{{message}}</h1>
    <School />
    <Student /><!--组件自定义事件——绑定 方式二-->
  </div>
</template>

<script>
  import Student from "@/components/Student";
  import School from "@/components/School";
  export default {
    name: 'App',
    data(){
      return{
        message:'Hello Vue!'
      }
    },
    components: {
      School,Student
    }
  }
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  background-color: gray;
  /*margin-top: 60px;*/
}
</style>
